<template>
  <div id="app">
    <img src="./assets/logo.png">
    <h1>{{ msg }}</h1>
    <h2>主页组件</h2>


    <hr />
    动态加载路由
    <router-view></router-view>

    <br />
    <router-link to="/home">home</router-link>
    <router-link to="/news">news</router-link>
  </div>
</template>

<script>
export default {
  name: "app",
  data() {
    return {
      msg: "主页组件"
    };
  }
};
</script>

<style lang="scss">
</style>